3.189 \(\int \frac{c+d x+e x^2+f x^3+g x^4+h x^5}{a+b x^4} \, dx\)

Optimal. Leaf size=337 \[ -\frac{\log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right ) \left (-\sqrt{a} \sqrt{b} e-a g+b c\right )}{4 \sqrt{2} a^{3/4} b^{5/4}}+\frac{\log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right ) \left (-\sqrt{a} \sqrt{b} e-a g+b c\right )}{4 \sqrt{2} a^{3/4} b^{5/4}}-\frac{\tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (\sqrt{a} \sqrt{b} e-a g+b c\right )}{2 \sqrt{2} a^{3/4} b^{5/4}}+\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right ) \left (\sqrt{a} \sqrt{b} e-a g+b c\right )}{2 \sqrt{2} a^{3/4} b^{5/4}}+\frac{(b d-a h) \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{a} b^{3/2}}+\frac{f \log \left (a+b x^4\right )}{4 b}+\frac{g x}{b}+\frac{h x^2}{2 b} \]

[Out]

(g*x)/b + (h*x^2)/(2*b) + ((b*d - a*h)*ArcTan[(Sqrt[b]*x^2)/Sqrt[a]])/(2*Sqrt[a]
*b^(3/2)) - ((b*c + Sqrt[a]*Sqrt[b]*e - a*g)*ArcTan[1 - (Sqrt[2]*b^(1/4)*x)/a^(1
/4)])/(2*Sqrt[2]*a^(3/4)*b^(5/4)) + ((b*c + Sqrt[a]*Sqrt[b]*e - a*g)*ArcTan[1 +
(Sqrt[2]*b^(1/4)*x)/a^(1/4)])/(2*Sqrt[2]*a^(3/4)*b^(5/4)) - ((b*c - Sqrt[a]*Sqrt
[b]*e - a*g)*Log[Sqrt[a] - Sqrt[2]*a^(1/4)*b^(1/4)*x + Sqrt[b]*x^2])/(4*Sqrt[2]*
a^(3/4)*b^(5/4)) + ((b*c - Sqrt[a]*Sqrt[b]*e - a*g)*Log[Sqrt[a] + Sqrt[2]*a^(1/4
)*b^(1/4)*x + Sqrt[b]*x^2])/(4*Sqrt[2]*a^(3/4)*b^(5/4)) + (f*Log[a + b*x^4])/(4*
b)

_______________________________________________________________________________________

Rubi [A]  time = 0.874254, antiderivative size = 337, normalized size of antiderivative = 1., number of steps used = 19, number of rules used = 12, integrand size = 35, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.343 \[ -\frac{\log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right ) \left (-\sqrt{a} \sqrt{b} e-a g+b c\right )}{4 \sqrt{2} a^{3/4} b^{5/4}}+\frac{\log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right ) \left (-\sqrt{a} \sqrt{b} e-a g+b c\right )}{4 \sqrt{2} a^{3/4} b^{5/4}}-\frac{\tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (\sqrt{a} \sqrt{b} e-a g+b c\right )}{2 \sqrt{2} a^{3/4} b^{5/4}}+\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right ) \left (\sqrt{a} \sqrt{b} e-a g+b c\right )}{2 \sqrt{2} a^{3/4} b^{5/4}}+\frac{(b d-a h) \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{a} b^{3/2}}+\frac{f \log \left (a+b x^4\right )}{4 b}+\frac{g x}{b}+\frac{h x^2}{2 b} \]

Antiderivative was successfully verified.

[In]  Int[(c + d*x + e*x^2 + f*x^3 + g*x^4 + h*x^5)/(a + b*x^4),x]

[Out]

(g*x)/b + (h*x^2)/(2*b) + ((b*d - a*h)*ArcTan[(Sqrt[b]*x^2)/Sqrt[a]])/(2*Sqrt[a]
*b^(3/2)) - ((b*c + Sqrt[a]*Sqrt[b]*e - a*g)*ArcTan[1 - (Sqrt[2]*b^(1/4)*x)/a^(1
/4)])/(2*Sqrt[2]*a^(3/4)*b^(5/4)) + ((b*c + Sqrt[a]*Sqrt[b]*e - a*g)*ArcTan[1 +
(Sqrt[2]*b^(1/4)*x)/a^(1/4)])/(2*Sqrt[2]*a^(3/4)*b^(5/4)) - ((b*c - Sqrt[a]*Sqrt
[b]*e - a*g)*Log[Sqrt[a] - Sqrt[2]*a^(1/4)*b^(1/4)*x + Sqrt[b]*x^2])/(4*Sqrt[2]*
a^(3/4)*b^(5/4)) + ((b*c - Sqrt[a]*Sqrt[b]*e - a*g)*Log[Sqrt[a] + Sqrt[2]*a^(1/4
)*b^(1/4)*x + Sqrt[b]*x^2])/(4*Sqrt[2]*a^(3/4)*b^(5/4)) + (f*Log[a + b*x^4])/(4*
b)

_______________________________________________________________________________________

Rubi in Sympy [F]  time = 0., size = 0, normalized size = 0. \[ \frac{f \log{\left (a + b x^{4} \right )}}{4 b} + \frac{h x^{2}}{2 b} + \frac{\int g\, dx}{b} - \frac{\left (a h - b d\right ) \operatorname{atan}{\left (\frac{\sqrt{b} x^{2}}{\sqrt{a}} \right )}}{2 \sqrt{a} b^{\frac{3}{2}}} + \frac{\sqrt{2} \left (- \sqrt{a} \sqrt{b} e + a g - b c\right ) \operatorname{atan}{\left (1 - \frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}} \right )}}{4 a^{\frac{3}{4}} b^{\frac{5}{4}}} - \frac{\sqrt{2} \left (- \sqrt{a} \sqrt{b} e + a g - b c\right ) \operatorname{atan}{\left (1 + \frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}} \right )}}{4 a^{\frac{3}{4}} b^{\frac{5}{4}}} + \frac{\sqrt{2} \left (\sqrt{a} \sqrt{b} e + a g - b c\right ) \log{\left (- \sqrt{2} \sqrt [4]{a} b^{\frac{3}{4}} x + \sqrt{a} \sqrt{b} + b x^{2} \right )}}{8 a^{\frac{3}{4}} b^{\frac{5}{4}}} - \frac{\sqrt{2} \left (\sqrt{a} \sqrt{b} e + a g - b c\right ) \log{\left (\sqrt{2} \sqrt [4]{a} b^{\frac{3}{4}} x + \sqrt{a} \sqrt{b} + b x^{2} \right )}}{8 a^{\frac{3}{4}} b^{\frac{5}{4}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((h*x**5+g*x**4+f*x**3+e*x**2+d*x+c)/(b*x**4+a),x)

[Out]

f*log(a + b*x**4)/(4*b) + h*x**2/(2*b) + Integral(g, x)/b - (a*h - b*d)*atan(sqr
t(b)*x**2/sqrt(a))/(2*sqrt(a)*b**(3/2)) + sqrt(2)*(-sqrt(a)*sqrt(b)*e + a*g - b*
c)*atan(1 - sqrt(2)*b**(1/4)*x/a**(1/4))/(4*a**(3/4)*b**(5/4)) - sqrt(2)*(-sqrt(
a)*sqrt(b)*e + a*g - b*c)*atan(1 + sqrt(2)*b**(1/4)*x/a**(1/4))/(4*a**(3/4)*b**(
5/4)) + sqrt(2)*(sqrt(a)*sqrt(b)*e + a*g - b*c)*log(-sqrt(2)*a**(1/4)*b**(3/4)*x
 + sqrt(a)*sqrt(b) + b*x**2)/(8*a**(3/4)*b**(5/4)) - sqrt(2)*(sqrt(a)*sqrt(b)*e
+ a*g - b*c)*log(sqrt(2)*a**(1/4)*b**(3/4)*x + sqrt(a)*sqrt(b) + b*x**2)/(8*a**(
3/4)*b**(5/4))

_______________________________________________________________________________________

Mathematica [A]  time = 0.742981, size = 342, normalized size = 1.01 \[ \frac{-2 \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (-2 a^{5/4} h+\sqrt{2} \sqrt{a} b^{3/4} e+2 \sqrt [4]{a} b d-\sqrt{2} a \sqrt [4]{b} g+\sqrt{2} b^{5/4} c\right )+2 \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right ) \left (2 a^{5/4} h+\sqrt{2} \sqrt{a} b^{3/4} e-2 \sqrt [4]{a} b d-\sqrt{2} a \sqrt [4]{b} g+\sqrt{2} b^{5/4} c\right )+\sqrt [4]{b} \left (2 a^{3/4} \sqrt [4]{b} \left (f \log \left (a+b x^4\right )+2 x (2 g+h x)\right )+\sqrt{2} \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right ) \left (\sqrt{a} \sqrt{b} e+a g-b c\right )+\sqrt{2} \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right ) \left (-\sqrt{a} \sqrt{b} e-a g+b c\right )\right )}{8 a^{3/4} b^{3/2}} \]

Antiderivative was successfully verified.

[In]  Integrate[(c + d*x + e*x^2 + f*x^3 + g*x^4 + h*x^5)/(a + b*x^4),x]

[Out]

(-2*(Sqrt[2]*b^(5/4)*c + 2*a^(1/4)*b*d + Sqrt[2]*Sqrt[a]*b^(3/4)*e - Sqrt[2]*a*b
^(1/4)*g - 2*a^(5/4)*h)*ArcTan[1 - (Sqrt[2]*b^(1/4)*x)/a^(1/4)] + 2*(Sqrt[2]*b^(
5/4)*c - 2*a^(1/4)*b*d + Sqrt[2]*Sqrt[a]*b^(3/4)*e - Sqrt[2]*a*b^(1/4)*g + 2*a^(
5/4)*h)*ArcTan[1 + (Sqrt[2]*b^(1/4)*x)/a^(1/4)] + b^(1/4)*(Sqrt[2]*(-(b*c) + Sqr
t[a]*Sqrt[b]*e + a*g)*Log[Sqrt[a] - Sqrt[2]*a^(1/4)*b^(1/4)*x + Sqrt[b]*x^2] + S
qrt[2]*(b*c - Sqrt[a]*Sqrt[b]*e - a*g)*Log[Sqrt[a] + Sqrt[2]*a^(1/4)*b^(1/4)*x +
 Sqrt[b]*x^2] + 2*a^(3/4)*b^(1/4)*(2*x*(2*g + h*x) + f*Log[a + b*x^4])))/(8*a^(3
/4)*b^(3/2))

_______________________________________________________________________________________

Maple [A]  time = 0.007, size = 462, normalized size = 1.4 \[{\frac{h{x}^{2}}{2\,b}}+{\frac{gx}{b}}-{\frac{\sqrt{2}g}{4\,b}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-1 \right ) }+{\frac{c\sqrt{2}}{4\,a}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-1 \right ) }-{\frac{\sqrt{2}g}{8\,b}\sqrt [4]{{\frac{a}{b}}}\ln \left ({1 \left ({x}^{2}+\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) \left ({x}^{2}-\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) ^{-1}} \right ) }+{\frac{c\sqrt{2}}{8\,a}\sqrt [4]{{\frac{a}{b}}}\ln \left ({1 \left ({x}^{2}+\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) \left ({x}^{2}-\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) ^{-1}} \right ) }-{\frac{\sqrt{2}g}{4\,b}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+1 \right ) }+{\frac{c\sqrt{2}}{4\,a}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+1 \right ) }-{\frac{ah}{2\,b}\arctan \left ({x}^{2}\sqrt{{\frac{b}{a}}} \right ){\frac{1}{\sqrt{ab}}}}+{\frac{d}{2}\arctan \left ({x}^{2}\sqrt{{\frac{b}{a}}} \right ){\frac{1}{\sqrt{ab}}}}+{\frac{e\sqrt{2}}{8\,b}\ln \left ({1 \left ({x}^{2}-\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) \left ({x}^{2}+\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) ^{-1}} \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+{\frac{e\sqrt{2}}{4\,b}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+1 \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+{\frac{e\sqrt{2}}{4\,b}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-1 \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+{\frac{f\ln \left ( b{x}^{4}+a \right ) }{4\,b}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((h*x^5+g*x^4+f*x^3+e*x^2+d*x+c)/(b*x^4+a),x)

[Out]

1/2*h*x^2/b+g*x/b-1/4/b*(a/b)^(1/4)*2^(1/2)*arctan(2^(1/2)/(a/b)^(1/4)*x-1)*g+1/
4*c*(a/b)^(1/4)/a*2^(1/2)*arctan(2^(1/2)/(a/b)^(1/4)*x-1)-1/8/b*(a/b)^(1/4)*2^(1
/2)*ln((x^2+(a/b)^(1/4)*x*2^(1/2)+(a/b)^(1/2))/(x^2-(a/b)^(1/4)*x*2^(1/2)+(a/b)^
(1/2)))*g+1/8*c*(a/b)^(1/4)/a*2^(1/2)*ln((x^2+(a/b)^(1/4)*x*2^(1/2)+(a/b)^(1/2))
/(x^2-(a/b)^(1/4)*x*2^(1/2)+(a/b)^(1/2)))-1/4/b*(a/b)^(1/4)*2^(1/2)*arctan(2^(1/
2)/(a/b)^(1/4)*x+1)*g+1/4*c*(a/b)^(1/4)/a*2^(1/2)*arctan(2^(1/2)/(a/b)^(1/4)*x+1
)-1/2/b/(a*b)^(1/2)*arctan(x^2*(b/a)^(1/2))*a*h+1/2*d/(a*b)^(1/2)*arctan(x^2*(b/
a)^(1/2))+1/8*e/b/(a/b)^(1/4)*2^(1/2)*ln((x^2-(a/b)^(1/4)*x*2^(1/2)+(a/b)^(1/2))
/(x^2+(a/b)^(1/4)*x*2^(1/2)+(a/b)^(1/2)))+1/4*e/b/(a/b)^(1/4)*2^(1/2)*arctan(2^(
1/2)/(a/b)^(1/4)*x+1)+1/4*e/b/(a/b)^(1/4)*2^(1/2)*arctan(2^(1/2)/(a/b)^(1/4)*x-1
)+1/4*f*ln(b*x^4+a)/b

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((h*x^5 + g*x^4 + f*x^3 + e*x^2 + d*x + c)/(b*x^4 + a),x, algorithm="maxima")

[Out]

Exception raised: ValueError

_______________________________________________________________________________________

Fricas [F(-2)]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: NotImplementedError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((h*x^5 + g*x^4 + f*x^3 + e*x^2 + d*x + c)/(b*x^4 + a),x, algorithm="fricas")

[Out]

Exception raised: NotImplementedError

_______________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((h*x**5+g*x**4+f*x**3+e*x**2+d*x+c)/(b*x**4+a),x)

[Out]

Timed out

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.222625, size = 506, normalized size = 1.5 \[ \frac{f{\rm ln}\left ({\left | b x^{4} + a \right |}\right )}{4 \, b} + \frac{b h x^{2} + 2 \, b g x}{2 \, b^{2}} + \frac{\sqrt{2}{\left (\sqrt{2} \sqrt{a b} b^{2} d + \sqrt{2} \sqrt{a b} a b h + \left (a b^{3}\right )^{\frac{1}{4}} b^{2} c - \left (a b^{3}\right )^{\frac{1}{4}} a b g + \left (a b^{3}\right )^{\frac{3}{4}} e\right )} \arctan \left (\frac{\sqrt{2}{\left (2 \, x + \sqrt{2} \left (\frac{a}{b}\right )^{\frac{1}{4}}\right )}}{2 \, \left (\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{4 \, a b^{3}} + \frac{\sqrt{2}{\left (\sqrt{2} \sqrt{a b} b^{2} d + \sqrt{2} \sqrt{a b} a b h + \left (a b^{3}\right )^{\frac{1}{4}} b^{2} c - \left (a b^{3}\right )^{\frac{1}{4}} a b g + \left (a b^{3}\right )^{\frac{3}{4}} e\right )} \arctan \left (\frac{\sqrt{2}{\left (2 \, x - \sqrt{2} \left (\frac{a}{b}\right )^{\frac{1}{4}}\right )}}{2 \, \left (\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{4 \, a b^{3}} + \frac{\sqrt{2}{\left (\left (a b^{3}\right )^{\frac{1}{4}} b^{2} c - \left (a b^{3}\right )^{\frac{1}{4}} a b g - \left (a b^{3}\right )^{\frac{3}{4}} e\right )}{\rm ln}\left (x^{2} + \sqrt{2} x \left (\frac{a}{b}\right )^{\frac{1}{4}} + \sqrt{\frac{a}{b}}\right )}{8 \, a b^{3}} - \frac{\sqrt{2}{\left (\left (a b^{3}\right )^{\frac{1}{4}} b^{2} c - \left (a b^{3}\right )^{\frac{1}{4}} a b g - \left (a b^{3}\right )^{\frac{3}{4}} e\right )}{\rm ln}\left (x^{2} - \sqrt{2} x \left (\frac{a}{b}\right )^{\frac{1}{4}} + \sqrt{\frac{a}{b}}\right )}{8 \, a b^{3}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((h*x^5 + g*x^4 + f*x^3 + e*x^2 + d*x + c)/(b*x^4 + a),x, algorithm="giac")

[Out]

1/4*f*ln(abs(b*x^4 + a))/b + 1/2*(b*h*x^2 + 2*b*g*x)/b^2 + 1/4*sqrt(2)*(sqrt(2)*
sqrt(a*b)*b^2*d + sqrt(2)*sqrt(a*b)*a*b*h + (a*b^3)^(1/4)*b^2*c - (a*b^3)^(1/4)*
a*b*g + (a*b^3)^(3/4)*e)*arctan(1/2*sqrt(2)*(2*x + sqrt(2)*(a/b)^(1/4))/(a/b)^(1
/4))/(a*b^3) + 1/4*sqrt(2)*(sqrt(2)*sqrt(a*b)*b^2*d + sqrt(2)*sqrt(a*b)*a*b*h +
(a*b^3)^(1/4)*b^2*c - (a*b^3)^(1/4)*a*b*g + (a*b^3)^(3/4)*e)*arctan(1/2*sqrt(2)*
(2*x - sqrt(2)*(a/b)^(1/4))/(a/b)^(1/4))/(a*b^3) + 1/8*sqrt(2)*((a*b^3)^(1/4)*b^
2*c - (a*b^3)^(1/4)*a*b*g - (a*b^3)^(3/4)*e)*ln(x^2 + sqrt(2)*x*(a/b)^(1/4) + sq
rt(a/b))/(a*b^3) - 1/8*sqrt(2)*((a*b^3)^(1/4)*b^2*c - (a*b^3)^(1/4)*a*b*g - (a*b
^3)^(3/4)*e)*ln(x^2 - sqrt(2)*x*(a/b)^(1/4) + sqrt(a/b))/(a*b^3)